package net.bw.realtime.tmall.service.impl;

import net.bw.realtime.tmall.bean.SaleProvinceReport;
import net.bw.realtime.tmall.mapper.SaleProvinceStatsMapper;
import net.bw.realtime.tmall.service.SaleProvinceStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/*
 * @ Author：liuyawei
 * @ Date：2025-05-28
 */
@Service
public class SaleProvinceStatsServiceImpl implements SaleProvinceStatsService {

    @Autowired
    SaleProvinceStatsMapper saleProvinceStatsMapper;

    @Override
    public List<SaleProvinceReport> selectSaleAmount(String date) {
        return saleProvinceStatsMapper.selectSaleAmount(date);
    }

    @Override
    public Double selectProvinceAmount(String date) {
        return saleProvinceStatsMapper.selectProvinceAmount(date);
    }

    @Override
    public Double selectProvinceOrderCnt(String date) {
        return saleProvinceStatsMapper.selectProvinceOrderCnt(date);
    }
}
